package io.linfeng.common.vo;

import io.linfeng.modules.admin.entity.VoteOptionEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.List;


@Data
@ApiModel(value="VoteInfoResponse对象", description="投票信息响应对象")
public class VoteInfoResponse implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * id
	 */
	@ApiModelProperty(value = "id")
	private Integer id;
	/**
	 * 标题
	 */
	@ApiModelProperty(value = "标题")
	private String title;
	/**
	 * 1单选2多选
	 */
	@ApiModelProperty(value = "1单选2多选")
	private Integer type;
	/**
	 * 到期时间
	 * 时间戳
	 */
	@ApiModelProperty(value = "到期时间-时间戳")
	private Integer expireTime;
	/**
	 * 到期时间
	 *
	 */
	@ApiModelProperty(value = "到期时间")
	private Date time;
	/**
	 * 创建时间
	 */
	@ApiModelProperty(value = "创建时间")
	private Date createTime;

	@ApiModelProperty(value = "选项列表")
	private List<VoteOptionEntity> options;

}
